package _220318;


import java.util.Scanner;

/**
 * @author ShadowLim
 * @create 2022-03-18-7:58
 */
public class _天干地支 {

    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int year = scanner.nextInt();
        scanner.close();
        // 1900 : gengzi
        // 1900 % 10 = 0 (geng) 故从下标0存储geng构建天干字符数组
        String[] tg = new String[]{"geng", "xin", "ren", "gui", "jia", "yi" , "bing", "ding", "wu", "ji"};
        // 1900 % 12 = 4 (zi) 故下标4的位置存储zi构建地支字符数组
        String[] dz = new String[]{"shen", "you", "xu", "hai", "zi", "chou", "yin", "mou", "chen", "si", "wu", "wei"};
        System.out.println(tg[year%10] + dz[year%12]);
    }
}
